<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>构造函数this</title>
	</head>
	<body>
	</body>
	<script>
		var bj=10;
		function Add(){
		    var bj=20;
		    this.bj=30;
		    this.say=function(){
		        console.log(this);//Add {bj: 30, say: ƒ()}
		        console.log(this.bj);//30
		    }
		     console.log(this) ;//Add {bj: 30, say: ƒ()}
		}
		var obj=new Add();
		console.log("---------------")
		console.log(typeof obj);//object
		console.log("22222222222222222")
		obj.say();
		console.log("33333333333")
		Add();
	</script>
</html>
